import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
<#list tableJavaNames as name >
    {
    path: '<#if moduleName != "">/${moduleName}</#if>/${name?uncap_first}',
    name: '${name}',
    component: () => import( '../views/module/<#if moduleName != "">/${moduleName}</#if>/${name}.vue')
    },
</#list>
]

const router = new VueRouter({
    mode: 'history',
    base: process.env.BASE_URL,
    routes
})

export default router
